package cn.edu.cjw.APMFP.Resource.DAO;

import java.util.ArrayList;

import cn.edu.cjw.APMFP.Resource.Resource;

public interface ResourceDAO {

	//新增更新资源
	public boolean addAndupdate(Resource resource) throws Exception;
	
	//删除资源
	public boolean remove(String bid) throws Exception;
	
	//按名称搜索资源
	public ArrayList<Resource> searchByName(String name) throws Exception;
	
	//按编号搜索库存
	public Resource searchById(String id) throws Exception;
	
	//按类型搜索库存
	public ArrayList<Resource> searchByType(String type) throws Exception;
	
}
